<template>
  <div class="loading"></div>
</template>

<script setup lang="ts"></script>

<style scoped lang="less">
.loading {
  width: 150px;
  height: 5px;
  border-radius: 5px;
  position: fixed;
  box-sizing: border-box;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  background-color: var(--background-primary);
  z-index: 10000000000000000000000000000;

  &::before {
    content: '';
    position: absolute;
    border-radius: 5px;
    width: 150px;
    height: 5px;
    background: linear-gradient(
      130deg,
      rgb(36, 198, 220),
      rgb(84, 51, 255) 41.07%,
      rgb(255, 0, 153) 76.05%
    );
    animation: loading 1s linear infinite;
  }

  @keyframes loading {
    0% {
      width: 0;
    }
    100% {
      width: 150px;
    }
  }
}
</style>
